/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 虚拟机模板管理Entity
 * @author dh
 * @version 2017-04-06
 */
public class SceneVmTemplate extends DataEntity<SceneVmTemplate> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 虚拟机模板名称
	private String type;		// 虚拟机模板类型
	private String memory;		// 内存大小
	private String cpu;		// CPU
	private String storage;		// 存储空间
	private String imageRef;		// 虚拟机镜像
	private String isOperateMachine;// 是否为操作机

	private String ram;		// 内存
	private String vcpus;		// VCPU数量
	private String disk;		// 磁盘大小
	private String vmTypeName;		// 云主机类型名称
	private String account;		// 操作系统账号
	private String password;		// 操作系统密码
	private String imageName;		// 虚拟机镜像名称


    private String fixedIp;
	private String environmentId;//实验id
	private String consoleUrl;		//控制台url
	private String portId;		//端口id
	private String vmName;//虚拟机名称
	public String getConsoleUrl() {
		return consoleUrl;
	}

	public String getFixedIp() {
		return fixedIp;
	}

	public void setFixedIp(String fixedIp) {
		this.fixedIp = fixedIp;
	}

	public String getEnvironmentId() {
		return environmentId;
	}

	public void setEnvironmentId(String environmentId) {
		this.environmentId = environmentId;
	}

	public void setConsoleUrl(String consoleUrl) {
		this.consoleUrl = consoleUrl;
	}

	public String getRam() {
		return ram;
	}

	public void setRam(String ram) {
		this.ram = ram;
	}

	public String getVcpus() {
		return vcpus;
	}

	public void setVcpus(String vcpus) {
		this.vcpus = vcpus;
	}

	public String getDisk() {
		return disk;
	}

	public void setDisk(String disk) {
		this.disk = disk;
	}

	public String getVmTypeName() {
		return vmTypeName;
	}

	public void setVmTypeName(String vmTypeName) {
		this.vmTypeName = vmTypeName;
	}

	public SceneVmTemplate() {
		super();
	}

	public SceneVmTemplate(String id){
		super(id);
	}

	@Length(min=0, max=64, message="虚拟机模板名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=4, message="虚拟机模板类型长度必须介于 0 和 4 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=8, message="内存大小长度必须介于 0 和 8 之间")
	public String getMemory() {
		return memory;
	}

	public void setMemory(String memory) {
		this.memory = memory;
	}
	
	@Length(min=0, max=64, message="CPU长度必须介于 0 和 64 之间")
	public String getCpu() {
		return cpu;
	}

	public void setCpu(String cpu) {
		this.cpu = cpu;
	}
	
	@Length(min=0, max=8, message="存储空间长度必须介于 0 和 8 之间")
	public String getStorage() {
		return storage;
	}

	public void setStorage(String storage) {
		this.storage = storage;
	}
	
	@Length(min=0, max=255, message="虚拟机镜像长度必须介于 0 和 255 之间")
	public String getImageRef() {
		return imageRef;
	}

	public void setImageRef(String imageRef) {
		this.imageRef = imageRef;
	}

	public String getIsOperateMachine() {
		return isOperateMachine;
	}

	public void setIsOperateMachine(String isOperateMachine) {
		this.isOperateMachine = isOperateMachine;
	}

	public String getPortId() {
		return portId;
	}

	public void setPortId(String portId) {
		this.portId = portId;
	}

	public String getVmName() {
		return vmName;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

	public void setVmName(String vmName) {
		this.vmName = vmName;
	}
}